# $Id: PKGBUILD 65250 2012-02-20 12:33:48Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=x-docs-pdf
pkgver=20120220
pkgrel=1
pkgdesc="X documentation"
arch=(any)
url="http://www.x.org/docs/"
license=('custom')
options=(docs)
source=('mirror.pl')
md5sums=('2142a55988b7e4b4021ea347ba806d03')

build() {
  mkdir -p $pkgdir/usr/share/doc/X11 $pkgdir/usr/share/licenses/x-docs-pdf $srcdir/X11
  cd $srcdir/X11
  perl $srcdir/mirror.pl
  cp -r $srcdir/X11 $pkgdir//usr/share/doc/
  cat <<EOF >$pkgdir/usr/share/licenses/x-docs-pdf/COPYRIGHT
  See PDF's first pages for copyright notes.
EOF
}
